package org.dromara.event.domain.vo;

import org.dromara.event.domain.EqpDevice;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 设备信息视图对象 eqp_device
 *
 * @author Yi LH
 * @date 2025-05-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = EqpDevice.class)
public class EqpDeviceVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 设备编号
     */
    @ExcelProperty(value = "设备编号")
    private Long id;

    /**
     * 设备类型
     */
    @ExcelProperty(value = "设备类型")
    private String deviceType;

    /**
     * 实时状态（0正常 1故障 2维护）
     */
    @ExcelProperty(value = "实时状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=故障,2=维护")
    private String status;

    /**
     * 日耗电量(kWh)
     */
    @ExcelProperty(value = "日耗电量(kWh)")
    private Long powerConsumption;

    /**
     * 日耗水量(吨)
     */
    @ExcelProperty(value = "日耗水量(吨)")
    private Long waterConsumption;

    /**
     * 设备名称
     */
    @ExcelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 位置信息
     */
    @ExcelProperty(value = "位置信息")
    private String location;


}
